package com.adrian.controller;

import com.adrian.pojo.Product;
import com.adrian.pojo.User;
import com.adrian.service.ProductService;
import com.adrian.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Auther: Adrian
 * @Date: 2020/3/19 21:03
 * @Description:
 */
@RestController
@Scope("prototype")
public class UserController {
    @Autowired
    private UserService userService;


    @RequestMapping("/user_login")
    public User userLogin(@RequestBody User user){
        return userService.login(user);
    }



}
